package com.trmp.base.ticketMng.dao.impl;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import org.springframework.data.jpa.repository.Modifying;


public class TicketInfoDaoImpl {

	@PersistenceContext
	private EntityManager em;

	@Modifying
	public void deleteByTicket(String checkedTicketIdList)
	{
		String deleteTicketStr="delete from T_BASE_TICKET where TICKET_ID in ("+checkedTicketIdList+")";
		Query queryScenery = em.createNativeQuery(deleteTicketStr);
		queryScenery.executeUpdate();
	}

}
